bin_PROGRAMS = critterding stuntcoureur empty

# set the include path found by configure
INCLUDES = $(all_includes) -I$(top_builddir)/dependencies/bullet

# the library search path.

SUBDIRS = math gl scenes/basescene utils gui brainz scenes/critterding scenes/stuntcoureur scenes/empty @OPENCL_LOCALDIR@

critterding_SOURCES = critterding.cpp
critterding_LDADD =	$(top_builddir)/src/gl/libgl.la \
			$(top_builddir)/src/scenes/basescene/libbasescene.la \
			$(top_builddir)/src/scenes/critterding/libcritterding.la \
			$(top_builddir)/src/utils/libutils.la \
			$(top_builddir)/src/math/libmath.la \
			$(top_builddir)/src/gui/libgui.la \
			$(top_builddir)/dependencies/bullet/libbulletmath.la \
			$(top_builddir)/dependencies/bullet/libbulletmultithreaded.la \
			@OPENCL_LA@ \
			$(HOST_LIBS)
# -lGL -lfreetype -lSDL -lBulletDynamics -lBulletCollision -lLinearMath -lftgl
critterding_LDFLAGS = -avoid-version -no-undefined -fopenmp






stuntcoureur_SOURCES = stuntcoureur.cpp
stuntcoureur_LDADD =	$(top_builddir)/src/gl/libgl.la \
			$(top_builddir)/src/scenes/basescene/libbasescene.la \
			$(top_builddir)/src/scenes/stuntcoureur/libscene.la \
			$(top_builddir)/src/scenes/stuntcoureur/gui/libgui.la \
			$(top_builddir)/src/scenes/stuntcoureur/entities/libentities.la \
			$(top_builddir)/src/scenes/stuntcoureur/entities/body/libbody.la \
			$(top_builddir)/src/scenes/stuntcoureur/utils/libutils.la \
			$(top_builddir)/src/utils/libutils.la \
			$(top_builddir)/src/math/libmath.la \
			$(top_builddir)/src/gui/libgui.la \
			$(top_builddir)/dependencies/bullet/libbulletmath.la \
			$(top_builddir)/dependencies/bullet/libbulletmultithreaded.la \
			$(top_builddir)/dependencies/bullet/libbulletdynamics.la \
			$(top_builddir)/dependencies/bullet/libbulletcollision.la \
			$(top_builddir)/dependencies/bullet/libbulletsoftbody.la \
			@OPENCL_LA@ \
			$(HOST_LIBS) -lpng -lSDL_net
stuntcoureur_LDFLAGS = -avoid-version -no-undefined


empty_SOURCES = empty.cpp
empty_LDADD =		$(top_builddir)/src/gl/libgl.la \
			$(top_builddir)/src/scenes/basescene/libbasescene.la \
			$(top_builddir)/src/scenes/empty/libscene.la \
			$(top_builddir)/src/scenes/empty/gui/libgui.la \
			$(top_builddir)/src/scenes/empty/utils/libutils.la \
			$(top_builddir)/src/scenes/empty/entities/libentities.la \
			$(top_builddir)/src/utils/libutils.la \
			$(top_builddir)/src/math/libmath.la \
			$(top_builddir)/src/gui/libgui.la \
			$(top_builddir)/dependencies/bullet/libbulletmath.la \
			$(top_builddir)/dependencies/bullet/libbulletmultithreaded.la \
			@OPENCL_LA@ \
			$(HOST_LIBS)
empty_LDFLAGS = -avoid-version -no-undefined

